<%@page import="java.util.ArrayList"%>
<%@page import="com.rfqx.entity.Customer"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" %>

<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Customers</title>
</head>
<body>

	<table>
		<thead>
			<tr>
				<th>#</th>
				<th>Name</th>
				<th>eMail</th>
				<th>Phone</th>
			</tr>
		</thead>
		<tbody>
<% 
	List<Customer> customers = new ArrayList<Customer>();
	if (request.getAttribute("customers") != null) {
		customers = (List<Customer>) request.getAttribute("customers");
	}
%>
			<% for ( Customer customer : customers ) { %>
			<tr>
				<td><%= customer.getId() %></td>
				<td><%= customer.getName() %></td>
				<td><%= customer.getEmail() %></td>
				<td><%= customer.getPhone() %></td>
			</tr>
			<% } %>
		</tbody>
				
	</table>			

</body>
</html>